#ifndef KEYEVENT_H
#define KEYEVENT_H

#include <QtGui>

class KeyEvent : public QWidget
{
    Q_OBJECT
public:
    KeyEvent(QWidget *parent=0);
    ~KeyEvent();
	
	void drawPix();
	void keyPressEvent(QKeyEvent *);
    void paintEvent(QPaintEvent *);

private:
    QPixmap *pix;
    QImage image; 
    int startX;
    int startY; 
    int width;
    int height;
    int step;
};


#endif
